package com.itheima.zhaohang.adpter;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.itheima.zhaohang.been.VidoPlayBeen;
import com.itheima.zhaohang.livepalyonline.R;

import java.util.List;

import io.vov.vitamio.MediaPlayer;
import io.vov.vitamio.widget.VideoView;

/**
 * 作者: 赵航
 * 创建时间: 2018/5/19 22:45
 * 描述:
 */
public class VidoPlayAdapter extends BasicRecycleViewAdapter<VidoPlayBeen> {

    private RelativeLayout mLoadingView;
    private TextView       mInterduce;


    public VidoPlayAdapter(List<VidoPlayBeen> showItems) {
        super(showItems);

    }

    @Override
    public void convert(BasicViewholder holder, final VidoPlayBeen itm, int position) {
        //视频的内容介绍
        mInterduce = (TextView) holder.getView(R.id.interduceviod);
        if (itm.getTitle() != null) {
            mInterduce.setText(itm.getTitle());
        }

    }

    @Override
    public int getSuccessFullView(int viewType) {
        return R.layout.vidoplayadapterlayout;
    }
}
